package com.ruoyi.back.controller

import com.ruoyi.app.common.PageData
import com.ruoyi.app.common.pageInfo
import com.ruoyi.back.domain.ClubJob
import com.ruoyi.back.domain.vo.ClubJobDataVo
import com.ruoyi.back.service.ClubJobDataService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("system/clubJobData")
@Api(tags = ["系统设置-社友乐园-统计"])
class ClubJobDataController {

    @Autowired
    private lateinit var clubJobDataService: ClubJobDataService

    @ApiOperation("统计分页")
    @GetMapping("list")
    fun clubJobDataPage(clubJob: ClubJob): PageData<ClubJobDataVo> = clubJobDataService.clubJobDataPage(clubJob).pageInfo()

}